package com.hhkj.study.admin.config.entity;

import com.baomidou.mybatisplus.annotation.TableName;
import com.ruoyi.common.core.domain.BizBaseEntity;
import com.ruoyi.common.valid.VAdd;
import com.ruoyi.common.valid.VDisable;
import lombok.Data;
import lombok.EqualsAndHashCode;

import javax.validation.constraints.NotBlank;
import javax.validation.constraints.NotNull;
import java.util.Date;

/**
*
* @author SERVER
* @since 2024-09-06
*/
@TableName(value = "x_config_link")
@EqualsAndHashCode(callSuper = true)
@Data
public class ConfigLink extends BizBaseEntity {

	/**
	 * 内容
	*/
	@NotBlank(message = "名称不能为空", groups = VAdd.class)
	private String name;
	/**
	 * innerQuickAccessLink：快捷入口-站内, outerQuickAccessLink：快捷入口-站外, friendlyLink：友情连接
	*/
	private String typeCode;
	/**
	 * 跳转路径url
	*/
	@NotBlank(message = "链接地址不能为空", groups = VAdd.class)
	private String url;
	/**
	 * 是否展示（0-上架， 1-下架）
	*/
	@NotNull(message = "上架状态不能为空", groups = {VAdd.class, VDisable.class})
	private Integer publishedFlag;
	/**
	 * 排序序号
	*/
	@NotNull(message = "排序序号不能为空", groups = VAdd.class)
	private Integer orderNum;

}